package com.clear.honghefinance.biz.modules.assist_calculate_summary.converter;

import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto.*;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.entity.AssistCalculateProject;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.vo.GetAssistCalculateProjectVO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.vo.ListAssistCalculateProjectVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AssistCalculateProjectConvertor {

    AssistCalculateProjectConvertor INSTANCE = Mappers.getMapper(AssistCalculateProjectConvertor.class);

    AssistCalculateProject convertDTOToEntity(CreateAssistCalculateProjectDTO dto);

    AssistCalculateProject convertDTOToEntity(UpdateAssistCalculateProjectDTO dto);

    List<ListAssistCalculateProjectVO> convertEntityToVO(List<AssistCalculateProject> entities);

    GetAssistCalculateProjectVO convertEntityToVO(AssistCalculateProject entity);
}
